<form class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">

    <!-- 章节名称 -->
    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('Titles')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="title" data-rule="required" class="form-control" name="row[title]" placeholder="{:__('Titles')}" type="text" value="{$row.title}" />
        </div>
    </div>

    <!-- 章节视频 -->
    <div class="form-group">
        <label for="url" class="control-label col-xs-12 col-sm-2">{:__('ChapterUrl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="url" data-url='ajax/uploadvideo'     data-rule="" class="form-control" size="50" name="row[url]" value="{$row.url}" type="text" readonly >
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-video_url" class="btn btn-danger plupload" data-multipart={"folder":"online_course_video"} data-input-id="url" data-mimetype="mp4,avi,ogg" data-multiple="false" data-preview-id="p-video_url"><i class="fa fa-upload"></i>上传</button></span>
                    <span><button type="button" id="fachoose-thumbs" class="btn btn-primary fachoose" data-input-id="thumbs" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="url"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="url"></ul>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
